package worktest.design;


public enum Singleton { 
    INSTANCE,INSTANCE2;
	public void whateverMethod() {
		   System.out.println("============");
	}
	
	public static void main(String[] args) {
		Singleton s = Singleton.INSTANCE;
		Singleton s2 = Singleton.INSTANCE;
		Singleton s3 = Singleton.INSTANCE2;
		System.out.println(s==s2);
		System.out.println(s==s3);
	}
}
